require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 1,["7"] = 6,["8"] = 4,["9"] = 7,["10"] = 6,["11"] = 10,["12"] = 12,["13"] = 13,["14"] = 14,["15"] = 15,["17"] = 17,["18"] = 10,["19"] = 20,["20"] = 21,["21"] = 20,["22"] = 24,["23"] = 25,["24"] = 24,["25"] = 28,["26"] = 29,["27"] = 28,["28"] = 32,["29"] = 33,["30"] = 32,["31"] = 36,["32"] = 37,["33"] = 36,["34"] = 40,["35"] = 41,["36"] = 42,["37"] = 43,["38"] = 40,["39"] = 46,["40"] = 47,["41"] = 46,["42"] = 50,["43"] = 51,["44"] = 50,["45"] = 54,["46"] = 55,["47"] = 54});
local ____exports = {}
____exports.BinaryReader = __TS__Class()
local BinaryReader = ____exports.BinaryReader
BinaryReader.name = "BinaryReader"
function BinaryReader.prototype.____constructor(self, binaryString)
    self.pos = 1
    self.data = binaryString
end
function BinaryReader.prototype.read(self, fmt, size)
    local unpacked = string:unpack(fmt, self.data, self.pos)
    self.pos = self.pos + size
    if unpacked.length <= 0 then
        return 0
    end
    return unpacked[0]
end
function BinaryReader.prototype.readDouble(self)
    return self:read(">d", 4)
end
function BinaryReader.prototype.readFloat(self)
    return self:read(">f", 4)
end
function BinaryReader.prototype.readInt16(self)
    return self:read(">h", 2)
end
function BinaryReader.prototype.readInt32(self)
    return self:read(">i4", 4)
end
function BinaryReader.prototype.readInt8(self)
    return self:read(">b", 1)
end
function BinaryReader.prototype.readString(self)
    local value = self:read(">z", 0)
    self.pos = self.pos + (#value + 1)
    return value
end
function BinaryReader.prototype.readUInt16(self)
    return self:read(">H", 2)
end
function BinaryReader.prototype.readUInt32(self)
    return self:read(">I4", 4)
end
function BinaryReader.prototype.readUInt8(self)
    return self:read(">B", 1)
end
return ____exports
